package com.webservice.xmloper.activeinfo;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

/**
 * 节点状态
 * @author Administrator
 *
 */

@XStreamAlias("spotState")
public class SpotState {
	
	/**
	 * 节点ID
	 */
	private String spotId;
	
	/**
	 * 节点类型
	 */
	private String spotType;
	
	/**
	 * 节点IP
	 */
	private String spotIp;
	
	/**
	 * CPUs
	 */
	@XStreamImplicit
	private List<CpuObject> cpus;
	
	/**
	 * 内存
	 */
	private Memory memory;
	
	/**
	 * 流量
	 */
	private Long flow;
	
	/**
	 * 同步状态
	 */
	private Integer syn;
	
	/**
	 * 应用状态
	 */
	private Integer appState;
	
	/**
	 * 异常描述
	 */
	private String msg;

	public SpotState() {
		super();
	}

	public SpotState(String spotId, String spotType, String spotIp,
			List<CpuObject> cpus, Memory memory, Long flow, Integer syn,
			Integer appState, String msg) {
		super();
		this.spotId = spotId;
		this.spotType = spotType;
		this.spotIp = spotIp;
		this.cpus = cpus;
		this.memory = memory;
		this.flow = flow;
		this.syn = syn;
		this.appState = appState;
		this.msg = msg;
	}

	public String getSpotId() {
		return spotId;
	}

	public void setSpotId(String spotId) {
		this.spotId = spotId;
	}

	public String getSpotType() {
		return spotType;
	}

	public void setSpotType(String spotType) {
		this.spotType = spotType;
	}

	public String getSpotIp() {
		return spotIp;
	}

	public void setSpotIp(String spotIp) {
		this.spotIp = spotIp;
	}

	public List<CpuObject> getCpus() {
		return cpus;
	}

	public void setCpus(List<CpuObject> cpus) {
		this.cpus = cpus;
	}

	public Memory getMemory() {
		return memory;
	}

	public void setMemory(Memory memory) {
		this.memory = memory;
	}

	public Long getFlow() {
		return flow;
	}

	public void setFlow(Long flow) {
		this.flow = flow;
	}

	public Integer getSyn() {
		return syn;
	}

	public void setSyn(Integer syn) {
		this.syn = syn;
	}

	public Integer getAppState() {
		return appState;
	}

	public void setAppState(Integer appState) {
		this.appState = appState;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
